-- GENERATED SPELL FOR [Lady Sevine] --


function spell0_7667(pUnit, Event) --@Curse of Weakness,Self--
pUnit:FullCastSpellOnTarget(12741,pUnit)
pUnit:RegisterEvent('Sorts_7667', 562, 1)
end

function spell1_7667(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(12742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7667', 23000, 1)
end

function spell2_7667(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(12739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7667', 3000, 1)
end

function spell3_7667(pUnit, Event) --@Summon Infernal Servant,Self--
pUnit:FullCastSpellOnTarget(12740,pUnit)
pUnit:RegisterEvent('Sorts_7667', 2000, 1)
end

function Sorts_7667(pUnit, Event)
local choix_sorts_7667 = math.random(0, 3)
if choix_sorts_7667 == 0 then
pUnit:RegisterEvent('spell0_7667', 1, 1)
end
if choix_sorts_7667 == 1 then
pUnit:RegisterEvent('spell1_7667', 1, 1)
end
if choix_sorts_7667 == 2 then
pUnit:RegisterEvent('spell2_7667', 1, 1)
end
if choix_sorts_7667 == 3 then
pUnit:RegisterEvent('spell3_7667', 1, 1)
end
end

function mob7667_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7667', math.random(1500, 3000), 1)
end

function mob7667_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7667_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7667_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7667, 1, 'mob7667_Action')
RegisterUnitEvent(7667, 2, 'mob7667_Leave')
RegisterUnitEvent(7667, 3, 'mob7667_Kill')
RegisterUnitEvent(7667, 4, 'mob7667_Die')
